package com.BookmanageSystem.service;

import com.BookmanageSystem.entity.Book;
import com.BookmanageSystem.entity.BookType;

import java.util.List;

public interface BookService {
    public List<Book> getBookList();
    public List<BookType> getTypeList();
    List<Book> getBookListByName(String bookName);
    String deleteBookById(String bookId);
    Book getBookById(String bookId);
    Integer updateBook(Book book);
    Integer updateType(BookType type);
    Integer addBook(Book book);
    List<BookType> getTypeListByName(String typeName);
    Integer addType(String typeName);
    Integer deleteTypeById(String typeId);
    BookType getTypeById(String typeId);
    Integer outBook(Book book);
    Integer inBook(String bookId);
}
